package com.ruoyi.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.project.domain.entity.ProjectAccounting;
import com.ruoyi.project.domain.entity.ProjectCustom;
import com.ruoyi.project.domain.entity.ProjectParticipan;
import com.ruoyi.project.domain.entity.ProjectSale;
import com.ruoyi.project.domain.query.ProjectAccountingQuery;
import com.ruoyi.project.domain.query.ProjectCustomQuery;
import com.ruoyi.project.domain.query.ProjectParticipanQuery;
import com.ruoyi.project.domain.query.ProjectSaleQuery;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface IProjectAccountingService extends IService<ProjectAccounting> {

    //分页
//    TableDataInfo getPage(ProjectAccountingQuery query);

    //新增
 Boolean addInfo(ProjectAccounting project);

 Boolean updateInfo(ProjectAccounting project);

 Boolean setNewInfo(ProjectAccounting project,String type);


 //删除

    Boolean deleteInfo(String id);

    //获取详情

    ProjectAccounting getInfoById(String id);

    List<ProjectAccounting> getList(ProjectAccountingQuery query);

    void checkWait(ProjectAccountingQuery query);

    List<ProjectAccounting> listCustomer(ProjectAccountingQuery query);


   Map getTotalCost(ProjectAccountingQuery query);




   //获取所有利润计算信息

   Map<String,BigDecimal> getAllList(String projectNo);


    //获取所有利润计算信息 前期的

    Map<String,BigDecimal> getAllListBefore(String projectNo);


    Map<String,Object>  saleInfo(ProjectCustomQuery query);

    Map<String,Object>  saleConfigInfo(ProjectCustomQuery query);


    Map<String,BigDecimal> warrantyMoney(String projectNo);

    TableDataInfo listCompare(ProjectAccountingQuery query);

    List<ProjectSale> getAllGjpListCustomer(ProjectSaleQuery query);



}
